package com.example.thirdannotation.y2024;

import com.example.thirdannotation.y2024.config.ConfigOfLifeCycle;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ConfigOfLifeCycleTest {

    public static void main(String[] args) {
        // 创建容器
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ConfigOfLifeCycle.class);
        System.out.println("容器创建完成...");
        applicationContext.close();
    }
}
